package com.zq.designpaterns.structure.facade;

/**
 * ================================================
 * 作    者：程志强
 * 邮    箱：cheng.zhiqiang@cesgroup.com.cn
 * 版    本：1.0.0
 * 创建日期：2021/01/12  14:28
 * 修改日期：
 * 描    述：外观类
 * 修订历史：
 * ================================================
 */
public class ShapeMaker {
    private final Shape circle;
    private final Shape square;
    private final Shape rectangle;

    public ShapeMaker() {
        circle = new Circle();
        square = new Square();
        rectangle = new Rectangle();
    }

    // 画圆
    public void drawCircle() {
        circle.draw();
    }

    // 画正方形
    public void drawSquare() {
        square.draw();
    }

    // 画长方形
    public void drawRectangle() {
        rectangle.draw();
    }
}
